{include file="layout/head.tpl"}
{include file="layout/menu.tpl"}

{literal}

    <script type="text/javascript" src="include/js/funcoes.js"></script>
    
    <script type="text/javascript">

        $().ready(function() {

            $("#btBuscar").click(function(){
                carregaTabela(1);
            })
        });

        function carregaTabela(pagina){
            var email = $("#email").val().trim();
            var login = $("#login").val().trim();
            var statusID = $("#statusID").val();

            $("#tbAdmin").append('<img src="include/images/ajax-loader.gif"/>');    
            $("#tbAdmin").load("AdminAction.tabela",
                {
                    email : email,
                    login : login,
                    statusID : statusID,
                    pagina : pagina
                }
            );
        }
            
        function reload(){
            carregaTabela(1);
        }

    </script>
{/literal}

<div id="content" class="block-border">

<div class="block-content">
<div class="h1 with-menu"><h1>Listagem de Administradores</h1></div>

{msg obj=$msg|default:null type="small"}

<div class="columns">
	<div class="colx1-left">           
            {include file="view/usuario/formBusca.tpl"}
            <div id="tbAdmin">{include file="view/usuario/tabela.tpl"}</div>
	</div>
</div>
</div>





</div>

{include file="layout/footer.tpl"}